<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="cn.netjava.pojo.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>manager article page</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managerpage.css">
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
      <div id="top">
		<h2>管理菜单</h2>
		<div id="topTags">
			<ul>
			  <li></li>
			</ul>
		</div>
	</div>
	
	<div id="main"> 
		<div id="leftMenu">
			<jsp:include page="managerleftmenu.jsp"></jsp:include>
		</div>
		
		<div id="content">
			<%List<Article> articleList = (List<Article>)session.getAttribute("allarticle"); %>
		    <table border=1>
		        <tr>
		            <td>文章id</td>
		            <td>文章标题</td>
		            <td>作者</td>
		            <td>所属栏目</td>
		            <td>所属类型</td>
		            <td>发表时间</td>
		        </tr>
		        <%if(null!=articleList){
		        for(Article article:articleList){ %>
		        <tr>
		            <td><%=article.getId() %></td>
		            <td><%=article.getArticle_title() %></td>
		            <td><%=article.getUser().getUserName() %></td>
		            <td><%=article.getArtical_column() %></td>
		            <td><%=article.getArticle_type() %></td>
		            <td><%=article.getIns_dt() %></td>
		        </tr>
		        <%}} %>
		    </table>
		</div>
	</div>
	<div id="footer">CopyRight @ 2009-2012 All Rights Reserved <br> 
    		 版权所有:长沙蒋于亭</div>
  </body>
</html>
